package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Product;
import cn.wolfcode.crm.query.ProductQueryObject;

import java.math.BigDecimal;
import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Product entity);

    Product selectByPrimaryKey(Long id);

    List<Product> selectAll();

    int updateByPrimaryKey(Product entity);
    int selectCount(ProductQueryObject qo);

    List<Product> queryForList(ProductQueryObject qo);
    int selectByCount();
    BigDecimal selectByAvg();

    List<Product> selectForExport(ProductQueryObject qo);
}